fix: (CDK) (BaseModelWithDeprecations) - filter the warnings to be shown, ignore the SyntaxWarning#535
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request updates the BaseModelWithDeprecations to filter out SyntaxWarning messages from the Airbyte log output.
- Added a filter to ignore SyntaxWarning messages during string evaluation
- Updated the warning configuration in base_model_with_deprecations.py
📝 WalkthroughWalkthroughA global filter was added to suppress all Changes
Suggested reviewers
Would you like to consider adding a comment in the code to clarify why 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
airbyte_cdk/sources/declarative/models/base_model_with_deprecations.py (1)
17-17: Clarify the intent of this comment for future maintainers.
The comment above the filter could mention which string‐evaluation path triggers theSyntaxWarning, so that it’s clear why this filter exists. Would adding that detail help? wdyt?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
airbyte_cdk/sources/declarative/models/base_model_with_deprecations.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: Check: 'source-pokeapi' (skip=false)
- GitHub Check: Check: 'source-amplitude' (skip=false)
- GitHub Check: Check: 'source-shopify' (skip=false)
- GitHub Check: Check: 'source-hardcoded-records' (skip=false)
- GitHub Check: Pytest (All, Python 3.11, Ubuntu)
- GitHub Check: Pytest (All, Python 3.10, Ubuntu)
- GitHub Check: SDM Docker Image Build
- GitHub Check: Pytest (Fast)
- GitHub Check: preview_docs
- GitHub Check: Analyze (python)
Maxime Carbonneau-Leclerc (maxi297)
left a comment
There was a problem hiding this comment.
Approving considering we will do more research on this
What
string interpolationtheSyntaxWarningmessage is printed tostdoutmaking the platform to think theRECORDis malformed; thus the record gets filtered out, causingrecord count mismatch.How
SyntaxWarningbeing printed tostdout\nto the formatted message, to be able to ignore sudden warnings in the stdout by the platformUser Impact
No impact is expected.
Summary by CodeRabbit